PWD=$(shell pwd)
VER=$(shell uname -r)

EXTRA_CFLAGS := -I$(PWD)/include -I$(PWD)

common_objs = ./src/init.o \
	      ./lib/get_symbol.o \
	      ./src/lsm.o \
	      ./lib/write_perm.o \
	      ./src/syscall_replace.o \
	      ./src/get_os_info.o \
	      ./lib/file_opt.o \
	      ./src/safety_protection.o
total_objs = $(common_objs)

obj-m+=linuxzds.o
linuxzds-objs:=$(total_objs)

default:
	@cat $(PWD)/doc/ZDS.png
	make  EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C  /lib/modules/$(VER)/build M=$(PWD) modules 

clean:
	make -C /lib/modules/$(VER)/build M=$(PWD) clean
